﻿//Restriction Module v 1.0
//Written by Bugra POSTACI (c)
//August 2010
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization; 

namespace RestrictionModuleApp
{
    [Serializable]
    public class Expression
    {
        private ExpressionType _Type;
        private string _Parameter;
        private bool _CaseSensitive;

        [XmlAttribute]
        public ExpressionType Type
        {
            get { return _Type; }
            set { _Type = value; }
        }
       
        [XmlText]
        public string Parameter
        {
            get { return _Parameter; }
            set { _Parameter = value; }
        }

        [XmlAttribute]
        public bool CaseSensitive
        {
            get { return _CaseSensitive; }
            set { _CaseSensitive = value; }
        }

    }

    public enum ExpressionType
    {
        StartWith,
        Contains,
        EndWith, 
        RegularExpression
    }
}